package com.example.controller;

import com.example.demo4.spring.context.ClassPathXmlApplicationContext;
import com.example.service.CourseService;

public class CourseController {

    public static void main(String[] args) throws Exception {

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");

        CourseService service = context.getBean("courseService", CourseService.class);

        service.add();

    }
}
